package com.iengoo.inductionms.model;

import lombok.*;

import java.util.Arrays;
import java.util.List;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-03-12 21:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
public class Condition {
    private String employeeType; // 员工类型：O长期员工,实习生,短期人员
    private String department; // 部门
    private String education; // 学历
    private String employmentNature; // 用工形式
    private Integer disabled; // 是否逻辑删除;
    private String name; // 员工名字
    private Integer status;//员工状态
    private List<String> typeArray;
    private String types;
    private int officeSuppliesStatus; // 办公用用品

    private int officeSiteStatus; // 办公站点状态

    private int softwareStatus; // 办公软件发放状态

    public List<String> getTypeArray () {
        if (types != null && !"".equals(types)) {
            return Arrays.asList(types.split(","));
        }

        return null;
    }
}
